package com.lc.admin.web;

import com.lc.admin.base.PageResponse;
import com.lc.admin.base.ResponseResult;
import com.lc.admin.dto.PendingTaskDto;
import com.lc.admin.service.PendingTaskService;
import com.lc.admin.vo.PendingTaskVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/pending_tasks")
public class PenddingTaskWeb {

    @Autowired
    PendingTaskService pendingTaskService;
    @PostMapping("/selectByPage")
    public ResponseResult selectByPage(@RequestBody PendingTaskDto pendingTaskDto) {
        PageResponse<List<PendingTaskVO>> resp = pendingTaskService.selectByPage(pendingTaskDto);
        return ResponseResult.success(resp);
    }
}
